home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 April / Macworld (1996-04).dmg / Educational Demos / Encyclopedia of Nature / DATA / Shared.Dir / 00335_Script_335 < prev    next >
Text File  |  1995-04-13  |  797b  |  29 lines

  1. on PCorMac eitherFN
  2.   --send this a Filename in form XXXXX?.Dir
  3.   --and 5th char from the end is reset depending on machine type
  4.   
  5.   if the machinetype = 256 then
  6.     set type = "P"
  7.   else 
  8.     set type = "M"
  9.   end if
  10.   put type into char (length(eitherFN)-4) of eitherFN
  11.   go frame "st" of movie string(eitherFN)
  12. end 
  13.  
  14. on goer
  15.   if getat(movielist, count(movielist)) = count(movielist) - 1 then
  16.     
  17.     put getat(movielist, 1) into moviename
  18.     setat movielist, count(movielist), 1
  19.     
  20.   else
  21.     set x = (1 + getat(movielist, count(movielist)))
  22.     setat movielist, count(movielist), x
  23.     put getat(movielist, x) into moviename
  24.   end if
  25.   put "@:" & chars(moviename, 2, length(moviename)) into moviename2
  26.   put moviename2
  27.   go frame "st" of movie moviename2
  28. end
  29.